Component({
  options: {
    multipleSlots: true
  },
  properties: {
    title: {
      type: String,
      value: ''
    },
    padding: {
      type: String,
      value: '12px'
    },
    ricon: {
      type: String,
      value: ''
    },
    thairline: {
      type: Boolean,
      value: false
    },
    bhairline: {
      type: Boolean,
      value: true
    },
  },
  data: {
    uiShow: false,
    params: null
  },
  methods: {
    handleHide(e){
      // console.log('handleHide')
      this.setData({ uiShow: false })
      this.triggerEvent('hideEvent', this.data.params)
    },
    handleClose(e){
      // console.log('handleClose')
      this.setData({ uiShow: false })
      this.triggerEvent('closeEvent', this.data.params)
    },
    handleShow(e, params){
      // console.log('handleShow')
      this.setData({ uiShow: true, ...params })
      this.triggerEvent('showEvent')
    },
    handleConfirm(e){
      // console.log('handleConfirm')
      this.triggerEvent('confirmEvent')
    }
  }
})
